package com.qige.homework;

public class JavaSE1 {
    public static void main(String[] args) {
        Man1 kk = new Man1("蔡徐坤","火星");
        kk.life();
    }
}
abstract class People {
    public String name;
    public String country;

    void speak(String str){}
}
interface Movement{
    void exercise();
}
class Man1 extends People implements Movement{
    public Man1(String name, String country){
        this.name = name;
        this.country = country;
    }
    @Override
    void speak(String str) {
        super.speak(str);
        System.out.println("姓名为 " + name + "的 " + country + " 人在说着 " + str);
    }
    public Man1() {
    }
    @Override
    public void exercise() {
        System.out.println(name + " 正在锻炼中！");
    }
    public void life(){
        speak("中国话");
        exercise();
    }
}
